using UnityEngine;

public class Lesson2 : MonoBehaviour
{
    // Update is called once per frame
    void Update()
    {
        // 鼠标左键
        if (Input.GetMouseButtonDown(0))
        {
            PoolMgr.GetInstance().Pop("Perfab/Cube", (obj)=> { });
        }
        
        // 鼠标右键
        if (Input.GetMouseButtonDown(1))
        {
            PoolMgr.GetInstance().Pop("Perfab/Sphere", (obj)=> { });
        }
    }
}
